package com.luomu.base.api.cookBook.excel.bo;


import java.util.Date;

public class CommonExportListDataRspBO {

    /**
     * 文件编号
     */
    private Long fileId;

    /**
     * 上传ID
     */
    private String fileOssId;

    /**
     * 文件名称
     */
    private String fileName;

    /**
     * 来源
     */
    private Integer originType;

    /**
     * 状态：0生成中 1成功 2失败
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 创建人名称
     */
    private String createUserName;

    public Long getFileId() {
        return fileId;
    }

    public void setFileId(Long fileId) {
        this.fileId = fileId;
    }

    public String getFileOssId() {
        if (null == fileOssId || "".equals(fileOssId)){
            return null;
        }
        return fileOssId;
    }

    public void setFileOssId(Long uploadId) {
        if(uploadId == null){
            this.fileOssId = null;
        }else if(uploadId.toString().matches("^[0-9]*$")){
            this.fileOssId = uploadId.toString();
        } else {
            this.fileOssId = uploadId.toString();
        }
    }

    public void setFileOssId(String uploadId) {
        if(uploadId == null || "".equals(uploadId.trim()) || uploadId.matches("^[0-9]*$")){
            this.fileOssId = uploadId;
        } else {
            this.fileOssId = uploadId;
        }
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Integer getOriginType() {
        return originType;
    }

    public void setOriginType(Integer originType) {
        this.originType = originType;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }
}
